 @primary-color: #3a7afe;
  @secondary-color: #6a11cb;
  @sale-color: #ee0a24;
  @border-color: #ebedf0;
  @text-secondary: #969799;

  .shopContainer {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
  }

  .description {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
  }

  .product-detail-container {
    display: flex;
    padding: 30px;

    @media (max-width: 768px) {
      flex-direction: column;
      padding: 15px;
    }
  }

  .product-gallery {
    flex: 0 0 48%;
    padding-right: 30px;

    @media (max-width: 768px) {
      width: 100%;
      padding-right: 0;
      margin-bottom: 20px;
    }
  }

  .main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f8f8;
    cursor: pointer;

    img {
      width: 100%;
      display: block;
      transition: transform 0.3s ease;
    }

    .image-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #fff;
      opacity: 0;
      transition: opacity 0.3s ease;

      span {
        margin-top: 8px;
        font-size: 14px;
      }
    }

    &:hover {
      img {
        transform: scale(1.03);
      }

      .image-overlay {
        opacity: 1;
      }
    }
  }

  .thumbnail-list {
    display: flex;
    margin-top: 15px;
    gap: 12px;
    flex-wrap: wrap;

    .thumbnail {
      width: 68px;
      height: 68px;
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s ease;
      background-color: #f8f8f8;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      &.active {
        border-color: @primary-color;
        transform: scale(1.05);
      }

      &:hover:not(.active) {
        border-color: lighten(@primary-color, 30%);
      }
    }
  }

  .product-info {
    flex: 1;

    .product-title {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 15px;
      color: #333;

      @media (max-width: 768px) {
        font-size: 20px;
      }
    }

    .product-price {
      display: flex;
      align-items: center;
      margin-bottom: 15px;

      .sale-price {
        font-size: 24px;
        font-weight: 700;
        color: @sale-color;
        margin-right: 12px;
      }

      .original-price {
        font-size: 18px;
        color: @text-secondary;
        text-decoration: line-through;
        margin-right: 15px;
      }

      .discount {
        background: lighten(@sale-color, 40%);
        color: @sale-color;
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 500;
      }
    }

    .product-rating {
      display: flex;
      align-items: center;
      margin-bottom: 20px;

      .rating-value {
        font-size: 16px;
        font-weight: 600;
        margin: 0 6px 0 10px;
        color: #333;
      }

      .reviews {
        font-size: 14px;
        color: @text-secondary;
      }
    }

    .product-description {
      color: #555;
      line-height: 1.6;
      margin-bottom: 25px;
      font-size: 15px;
    }

    .product-features {
      margin-bottom: 25px;

      h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #333;
      }

      ul {
        padding-left: 20px;

        li {
          margin-bottom: 8px;
          color: #555;
          font-size: 14px;
          position: relative;

          &::before {
            content: '•';
            color: @primary-color;
            font-weight: bold;
            margin-right: 8px;
          }
        }
      }
    }

    .color-selector,
    .size-selector,
    .quantity-selector {
      margin-bottom: 25px;

      h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #333;
      }
    }

    .color-options {
      display: flex;
      gap: 12px;

      .color-option {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid transparent;
        transition: all 0.2s ease;

        &.selected {
          border-color: #333;
          box-shadow: 0 0 0 2px #fff inset;
          transform: scale(1.1);
        }
      }
    }

    .size-options {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;

      .size-option {
        width: 48px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid @border-color;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;

        &:hover {
          border-color: @primary-color;
          color: @primary-color;
        }

        &.selected {
          background: @primary-color;
          border-color: @primary-color;
          color: #fff;
        }
      }
    }

    .size-guide {
      display: inline-block;
      margin-top: 10px;
      color: @primary-color;
      font-size: 14px;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }

    .quantity-selector {
      display: flex;
      align-items: center;
      gap: 20px;

      @media (max-width: 480px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .quantity-control {
        display: flex;
        align-items: center;
        // border: 1px solid @border-color;
        border-radius: 20px;
        padding: 4px;

        .quantity-value {
          width: 40px;
          text-align: center;
          font-weight: 500;
        }
      }
    }

    .action-buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin: 30px 0;

      @media (max-width: 480px) {
        grid-template-columns: 1fr;
      }

      .add-to-cart {
        background: linear-gradient(to right, @primary-color, @secondary-color);
        border: none;
      }

      .buy-now {
        background: #333;
        color: #fff;
        border: none;
      }

      :deep(.van-icon) {
        margin-right: 8px;
        font-size: 18px;
      }
    }

    .product-meta {
      border-top: 1px solid @border-color;
      padding-top: 20px;

      .meta-item {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        font-size: 14px;
        color: #555;

        .van-icon {
          margin-right: 10px;
        }
      }
    }
  }

  .product-detail-bottom {
    padding: 30px;
    border-top: 1px solid @border-color;

    @media (max-width: 768px) {
      padding: 20px 15px;
    }

    .detail-section {
      margin-bottom: 40px;

      h2 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid @border-color;
      }

      p {
        margin-bottom: 15px;
        line-height: 1.6;
        color: #555;
      }
    }

    .review-summary {
      display: flex;
      gap: 40px;
      margin: 20px 0 30px;
      padding: 20px;
      background: #f9fbfd;
      border-radius: 12px;

      @media (max-width: 768px) {
        flex-direction: column;
        gap: 20px;
      }

      .overall-rating {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .rating-value {
          font-size: 36px;
          font-weight: 700;
          color: #333;
          line-height: 1;
        }

        .rating-stars {
          margin: 8px 0;
        }

        .rating-count {
          font-size: 14px;
          color: @text-secondary;
        }
      }

      .rating-bars {
        flex: 1;

        .rating-bar {
          display: flex;
          align-items: center;
          margin-bottom: 12px;

          span:first-child {
            width: 70px;
            font-size: 14px;
            color: #555;
          }

          .van-progress {
            flex: 1;
            margin: 0 10px;
          }

          span:last-child {
            width: 40px;
            text-align: right;
            font-size: 14px;
            color: #555;
          }
        }
      }
    }

    .reviews-list {
      margin-bottom: 20px;

      .review-item {
        padding: 20px 0;
        border-bottom: 1px solid @border-color;

        &:last-child {
          border-bottom: none;
        }
      }

      .review-header {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
      }

      .user-avatar {
        width: 42px;
        height: 42px;
        background: @primary-color;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 600;
        font-size: 18px;
        margin-right: 12px;
      }

      .user-info {
        flex: 1;

        .user-name {
          font-weight: 500;
          margin-bottom: 3px;
        }

        .review-date {
          font-size: 13px;
          color: @text-secondary;
        }
      }

      .review-content {
        color: #555;
        line-height: 1.6;
      }
    }
  }

  .related-products {
    margin-top: 40px;

    .section-title {
      font-size: 22px;
      font-weight: 600;
      margin-bottom: 20px;
      text-align: center;
      color: #333;
      position: relative;
      padding-bottom: 15px;

      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: @primary-color;
        border-radius: 3px;
      }
    }
  }
  .main-image {
    position: relative;

    .pc-navigation {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      pointer-events: none;

      .nav-button {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;

        &:hover {
          background: rgba(0, 0, 0, 0.6);
          transform: scale(1.1);
        }

        &.prev {
          margin-left: 15px;
        }

        &.next {
          margin-right: 15px;
        }
      }
    }

    .image-indicator {
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 14px;
    }
  }


  .thumbnail {
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
  }